import axios from 'axios';
import {  req } from './axiosFun';
import {userSave} from "./userMG";


export const deviceList = (params) => { return req("post", "/api/device/list/page", params) };
export const deviceStatus = (params) => { return req("post", "/api/device/edit", params) };
//增加
export const deviceSave = (params) => { return req("post", "/api/device/save", params) };
//编辑
export const deviceEdit = (params) => { return req("post", "/api/device/edit", params) };
export const deviceDelete = (params) => { return axios.delete("/api/device/del/" + params).then(res => res.data) };
export const deviceBatchDel = (params) => { return req("post", "/api/device/del/batch", params) };
